package com.wlb.test.util.rabbitmq;

/**
 * @Author:wanglibing
 * @Mail:wanglibing@jd.com
 * @Date:Created in 21:23 2018/1/29
 * @Description:
 */
public enum QueueEnum {

    QUEUE_NAME_SIMPLE("queue_simple",1),
    QUEUE_NAME_WORK("queue_work",2),
    QUEUE_NAME_TOPIC1("queue_name_topic1",7),
    QUEUE_NAME_TOPIC2("queue_name_topic2",8),
    QUEUE_NAME_FANOUT1("queue_fanout_1",3),
    QUEUE_NAME_FANOUT2("queue_fanout_2",5),
    EXCHANGE_NAME_TOPIC("exchange_name_topic",6),
    EXCHANGE_NAME("exchange_fanout",4);
    // 成员变量
    private String name;
    private int index;
    // 构造方法
    private QueueEnum(String name, int index) {
        this.name = name;
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public int getIndex() {
        return index;
    }
}
